<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <link rel="stylesheet" href="<?php echo base_url() . 'style/admin/' ?>css/login.css" />
    <script type="text/javascript" src="<?php echo base_url() . 'style/admin/' ?>js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url() . 'style/admin/' ?>js/login.js"></script>
    <title>后台登录</title>
    <script type="application/javascript" charset="UTF-8">
        window.onload = function () {
            // 获取验证码图片元素
            var img = document.getElementsByTagName('img')[0];
            // 为验证码图片绑定鼠标点击事件
            // 点击验证码图片，刷新验证码
            img.onclick = function () {
                this.src = this.src + '?' + Math.random();
            }

            // 表单提交简单验证
            function checkForm () {
                var userName = document.getElementById('userName').value;
                var passWord = document.getElementById('psd').value;
                if (userName == '') {
                    document.getElementsByClassName('f_lt').value('用户名不能为空');
                    return false;
                }
            }
        }
    </script>
</head>
<body>
<div id="divBox">
    <form action="<?php echo site_url('admin/login/login_in') ?>" method="POST" id="login" onsubmit="return checkForm();">
        <input type="text" id="userName" name="username"/>
        <input type="password" id="psd" name="password"/>
        <input type="text" value="" id="verify" name="captcha"/>
        <input type="submit" id="sub" value=""/>
        <!-- 验证码 -->
        <div class="captcha">
            <img src="<?php echo site_url('admin/login/code') ?>" alt="验证码" width="80" height="25" />
        </div>
    </form>
    <div class="four_bj">

        <p class="f_lt"></p>
        <p class="f_rt"></p>
        <p class="f_lb"></p>
        <p class="f_rb"></p>
    </div>
</div>
<!--[if IE 6]>
<script type="text/javascript" src="<?php echo base_url() . 'style/admin/' ?>js/iepng.js"></script>
<script type="text/javascript">
    DD_belatedPNG.fix('form','background');
</script>
<![endif]-->
</body>
</html>